while True:
    prompt ="请告诉我们,你为什么喜欢编程?(输入'quit'结束程序):"
    reason = input(prompt)
    if reason =='quit':
        break
    with open("love_program.txt","a") as file_object:
        file_object.write(f"{reason}\n")
